<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
    <link rel="stylesheet " href="__PUBLIC__/css/bootstrap.min.css ">
    <link rel="stylesheet " href="__PUBLIC__/h-ui.admin/css/category.css ">
    <script src="__PUBLIC__/js/jquery.min.js "></script>
    <script src="__PUBLIC__/js/bootstrap.min.js "></script>
</head>

<body>
    <div class="breadcrumb-wrap container-fluid">
        <ol class="breadcrumb pull-left">
            <li><a href="#">后台管理</a></li>
            <li class="active">编辑商品</li>
        </ol>
        <a href="{:U('Goods/category')}" class="pull-right add-category">商品分类</a>
    </div>
    <div class="add-category-wrap">
        <form class="form-horizontal" action="" method="post">
            <div class="form-group">
                <label for="cat_name" class="col-sm-2 control-label">分类名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="cat_name" id="cat_name" value="{$data.cat_name}">
                </div>
            </div>
            <div class="form-group">
                <label for="parent_id" class="col-sm-2 control-label">上级分类</label>
                <div class="col-sm-10">
                    <select class="form-control" name="parent_id">
                        <option value="0">顶级分类</option>
                       {$str}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="sort_order" class="col-sm-2 control-label">排序</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="sort_order" id="sort_order" value="{$data.sort_order}">
                </div>
            </div>
            <div class="form-group">
                <label for="cat_desc" class="col-sm-2 control-label">分类描述</label>
                <div class="col-sm-10">
                    <textarea class="form-control" rows="3" id="cat_desc" name="cat_desc" style="resize:none">{$data.cat_desc}</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">提交</button>
                    <input type="hidden" name="cat_id" value="{$data['cat_id']}">
                </div>
            </div>
        </form>
    </div>
</body>

</html>